//
//  eiaHtmlInterperter.h
//  MarketDataColloctor
//
//  Created by jiro on 10/10/17.
//  Copyright 2010 jiro music. All rights reserved.
//

#import <Cocoa/Cocoa.h>

enum DataInterval {
	Daily,
	Weekly,
	Monthly,
	Annual,
};

@interface EiaHtmlParser : NSObject {

}

//	interpret html, return ( date as NSDate, value as NSString ) pairs as NSDate, NSString
+ (BOOL) parseDataHtml: (NSString*) html dataInterval: (DataInterval) interval latestDate: (NSDate*) date result: (NSMutableDictionary*) results;

+ (BOOL) parseWeeklyDataHtml: (NSXMLElement*) element latestDate: (NSDate*) latestDate result: (NSMutableDictionary*) results;

+ (BOOL) parseDailyDataHtml: (NSXMLElement*) element latestDate: (NSDate*) latestDate result: (NSMutableDictionary*) results;


@end
